<!DOCTYPE html>
<html>
<head>
    <title>IndexedDB</title>
	 <meta charset="UTF-8">
    <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
    <script type="text/javascript" src="indexdb4.js"></script>
</head>
<body>
    <form>
        Roll No <input type="text" name="rollno" id="rollno"/><br>
        Name <input type="text" name="name" id="name" /><br>            
        <input type="button" name="addBtn" value="Add" id="addBtn"/>
        <input type="button" name="removeBtn" value="Remove" id="removeBtn"/>
        <input type="button" name="getBtn" value="Get" id="getBtn"/>
        <input type="button" name="updateBtn" value="Update" id="updateBtn"/>
    </form>
    <div id="result"></div>
</body>
</html>
<script type="text/javascript">
    jQuery(document).ready(function($) {
        $('#addBtn').click(function() {
            indexdb_find('8','1');
            setTimeout(go(),1000)
        });
        function go(){
            trigger('#addBtn');
             alert(indexdb_data())
        }
        
    });
</script>